package com.test2;

/**
 * @author cjx
 * @create 2024/06/07
 * @description 继承、接口实现  测试
 */
public class Test {
    public static void main(String[] args) {
        PingpangPlayer pp = new PingpangPlayer("小林", 20);
        PingpangCoach pc = new PingpangCoach("张国梁", 40);
        BasketballPayer bp = new BasketballPayer("小豪", 25);
        BasketballCoach bc = new BasketballCoach("姚", 40);
        pp.play();
        pp.speakEnglish();

        pc.teach();
        pc.speakEnglish();

        bp.play();
        bc.teach();
    }
}
